using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk
{
	[DataContract(Name = "ServiceEndpointFault", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	[Serializable]
	public sealed class ServiceEndpointFault : IExtensibleDataObject
	{
		private string _message;
		private ErrorDetailCollection _details;
		[NonSerialized]
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public string Message
		{
			get
			{
				return this._message;
			}
			set
			{
				this._message = value;
			}
		}
		[DataMember]
		public ErrorDetailCollection ErrorDetails
		{
			get
			{
				if (this._details == null)
				{
					this._details = new ErrorDetailCollection();
				}
				return this._details;
			}
			set
			{
				this._details = value;
			}
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public ServiceEndpointFault()
		{
		}
		public ServiceEndpointFault(string message)
		{
			this._message = message;
		}
	}
}
